package com.xx.bysj.mapper;

import com.xx.bysj.dto.HnInformation;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface HnInformationMapper {
    int deleteByPrimaryKey(Integer userInformationId);

    int insert(HnInformation record);

    int insertSelective(HnInformation record);

    HnInformation selectByPrimaryKey(Integer userInformationId);

    int updateByPrimaryKeySelective(HnInformation record);

    int updateByPrimaryKey(HnInformation record);

    /**
     * 通过用户名查询用户信息
     * @param userName
     * @return
     */
    List<HnInformation> getInfomationByUserName(@Param("userName") String userName);

    /**
     * 通过userid查询用户信息
     * @param userId
     * @return
     */
    List<HnInformation> selectByUserId(Integer userId);

    /**
     * 跟新用户信息
     * @param hnInformation
     */
    void updateByUserId(HnInformation hnInformation);

    /**
     * 查询用户信息
     * @param information
     * @return
     */
    List<HnInformation> query(HnInformation information);

    HnInformation getInfomationByUserId(@Param("userId") Integer userId);

    List<HnInformation> queryEmployee(HnInformation information);

    List<HnInformation> querySalary(HnInformation information);
}